package com.kaver.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 项目关联
 * </p>
 *
 * @author Roc
 * @since 2019-07-25
 */
@TableName("dc_app_parent")
public class DcAppParent extends Model<DcAppParent> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 项目id
     */
    @TableField("app_id")
    private Integer appId;
    /**
     * 父项目id
     */
    @TableField("parent_app_id")
    private Integer parentAppId;
    /**
     * 环境id
     */
    @TableField("env_id")
    private Integer envId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public Integer getParentAppId() {
        return parentAppId;
    }

    public void setParentAppId(Integer parentAppId) {
        this.parentAppId = parentAppId;
    }

    public Integer getEnvId() {
        return envId;
    }

    public void setEnvId(Integer envId) {
        this.envId = envId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DcAppParent{" +
        "id=" + id +
        ", appId=" + appId +
        ", parentAppId=" + parentAppId +
        ", envId=" + envId +
        ", createTime=" + createTime +
        "}";
    }
}
